#ifndef MYMODBUS_H
#define MYMODBUS_H

#include <QDialog>
#include <QDebug>
#include <QCoreApplication>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QString>
#include <QJsonParseError>
#include "datainfo.h"
#include <QPainter>

namespace Ui {
class MyModbus;
}

class MyModbus : public QDialog
{
    Q_OBJECT

public:
    explicit MyModbus(QWidget *parent = 0);
    ~MyModbus();

private:
    Ui::MyModbus *ui;
    DataInfo *data;
    QJsonObject inparse(QByteArray);//反序列化
    void paintEvent(QPaintEvent * event);
private slots:
    void keyValueGetSlot(int,QString);
    void btnClickSlot();
    void lineClickedSlot();

};

#endif // MYMODBUS_H
